package org.example.auth.service.impl;





import com.example.model.auth.dto.UserDTO;
import com.example.model.auth.dto.UserLoginDTO;

import lombok.extern.slf4j.Slf4j;
import org.example.auth.mapper.CustomerMapper;
import org.example.auth.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class CustomerServiceimpl implements CustomerService {
    @Autowired
    private CustomerMapper customerMapper;

    @Override
    public UserDTO getUserByPasswordAndUsername(UserLoginDTO userLoginDTO) {
        UserDTO userByPasswordAndUsername = customerMapper.getUserByPasswordAndUsername(userLoginDTO);
        return userByPasswordAndUsername;
    }


}
